package com.test.rpc;

import com.test.rpc.codec.Decoder;
import com.test.rpc.codec.Encoder;
import com.test.rpc.codec.JSONDecoder;
import com.test.rpc.codec.JSONEncoder;
import com.test.rpc.transport.HttpTransportServer;
import com.test.rpc.transport.TransportServer;
import lombok.Data;

@Data
public class RpcServerConfig {
    //网络协议
    private Class<? extends TransportServer> transportClass = HttpTransportServer.class;
    //序列化
    private Class<? extends Encoder> encoderClass = JSONEncoder.class;
    private Class<? extends Decoder> decoderClass = JSONDecoder.class;

    private int port = 8080;

}
